package com.wx;

/**
 * @author 王鑫
 * @version 1.0
 */
public class Good {
    private Integer front;
    private Integer rear;
    private Integer maxSize;
    private Integer[] arr;

    public Good(Integer maxSize) {
        this.front = 0;
        this.rear = 0;
        Integer[] arr = new Integer[maxSize];
    }

    //判断是否为null
    public boolean isFull() {
        return this.rear == rear;
    }

    //判断是否为empty
    public boolean isEmpty() {
        return this.front == this.rear;

    }

    //添加节点
    public void add(){
        if (isFull()){
            throw new RuntimeException("节点已经慢l");
        }



    }}




